
<%@ page import="imobiliaria2.Imovel" %>
<!DOCTYPE html>
<html>

<head>
	<meta name="layout" content="kickstart" />
	<g:set var="entityName" value="${message(code: 'imovel.label', default: 'Imovel')}" />
	<title><g:message code="default.list.label" args="[entityName]" /></title>
	<r:require module="filterpane" />
</head>

<body>
<br>
<filterpane:filterPane domain="Imovel" />
<filterpane:filterButton text="Pesquisar" class="btn btn-large btn-primary" />
<section id="list-imovel" class="first">

	<table class="table table-bordered margin-top-medium">
		<thead>
			<tr>
			
				<g:sortableColumn property="status" title="${message(code: 'imovel.status.label', default: 'Status')}" />
			
				<g:sortableColumn property="tipoDeImovel" title="${message(code: 'imovel.tipoDeImovel.label', default: 'Tipo De Imovel')}" />
			
				<g:sortableColumn property="posicao" title="${message(code: 'imovel.posicao.label', default: 'Posicao')}" />
			
				<g:sortableColumn property="area" title="${message(code: 'imovel.area.label', default: 'Area')}" />
			
				<g:sortableColumn property="comodos" title="${message(code: 'imovel.comodos.label', default: 'Comodos')}" />
			
				<g:sortableColumn property="possuiGaragem" title="${message(code: 'imovel.possuiGaragem.label', default: 'Possui Garagem')}" />
			
			</tr>
		</thead>
		<tbody>
		<g:each in="${imovelInstanceList}" status="i" var="imovelInstance">
			<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
			
				<td><g:link action="show" id="${imovelInstance.id}">${fieldValue(bean: imovelInstance, field: "status")}</g:link></td>
			
				<td>${fieldValue(bean: imovelInstance, field: "tipoDeImovel")}</td>
			
				<td>${fieldValue(bean: imovelInstance, field: "posicao")}</td>
			
				<td>${fieldValue(bean: imovelInstance, field: "area")}</td>
			
				<td>${fieldValue(bean: imovelInstance, field: "comodos")}</td>
			
				<td><g:formatBoolean boolean="${imovelInstance.possuiGaragem}" /></td>
			
			</tr>
		</g:each>
		</tbody>
	</table>
	<div>
		<g:paginate total="${imovelCount == null ? Imovel.count(): imovelCount}" params="${filterParams}" />
	</div>
</section>

</body>

</html>
